package com.wen.mall.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (MallOrderItem)实体类
 *
 * @author makejava
 * @since 2021-08-12 11:08:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderItem implements Serializable {
    private static final long serialVersionUID = -94395766285982818L;
    /**
     * 订单子表id
     */

    private Integer id;


    private Integer userId;


    private Long orderNo;

    /**
     * 商品id
     */

    private Integer productId;

    /**
     * 商品名称
     */

    private String productName;

    /**
     * 商品图片地址
     */

    private String productImage;

    /**
     * 生成订单时的商品单价，单位是元,保留两位小数
     */

    private Double currentUnitPrice;

    /**
     * 商品数量
     */

    private Integer quantity;

    /**
     * 商品总价,单位是元,保留两位小数
     */

    private Double totalPrice;


    private Date createTime;


    private Date updateTime;


}
